package dao;

import dao.inte.PayMethodRepository;
import domain.shop.PayMethod;

import javax.inject.Singleton;

@Singleton
public class PayMethodRepositoryImpl extends AbstractEntityRepository<PayMethod> implements PayMethodRepository {
    public PayMethodRepositoryImpl() {
        super(PayMethod.class);
    }


    @Override
    protected Class<PayMethod> getEntityClass() {
        return PayMethod.class;
    }

    public PayMethod create() throws Exception {
        PayMethod payMethod = new PayMethod();
        return save(payMethod);
    }
}
